from __future__ import print_function, division
"""
some utility functions
"""

import os
import os.path as osp
import sys, time, math

import torch
from torch import nn

def get_mean_and_std()

def one_hot_embedding(labels, num_classes):
    """
    one hot encoding of labels
    Input:
        labels:     Long type class labels, sized [N, ]
        num_classes: number of classes
    """
    y   = torch.eye(num_classes)
    return y[labels]
